﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Web.Core.Objects
{
    public class Article
    {
        int id, sequence;

        public int Sequence
        {
            get { return sequence; }
            set { sequence = value; }
        }
        string image;

        public string Image
        {
            get { return image; }
            set { image = value; }
        }

        public int Id
        {
            get { return id; }
            set { id = value; }
        }
        string title, content, type;

        public string Type
        {
            get { return type; }
            set { type = value; }
        }

        public string Content
        {
            get { return content; }
            set { content = value; }
        }

        public string Title
        {
            get { return title; }
            set { title = value; }
        }
        bool active, top;

        public bool Top
        {
            get { return top; }
            set { top = value; }
        }

        public bool Active
        {
            get { return active; }
            set { active = value; }
        }

        public Article() { }
        public Article(string tit, string content, string type, bool active, bool top)
        {
            this.Title = tit;
            this.Content = content;
            this.Type = type;
            this.Active = active;
            this.Top = top;
        }
    }
}
